package com.slsoft.sys.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.fastmc.core.jpa.service.BaseService;

import com.slsoft.core.action.BaseController;
import com.slsoft.sys.entify.Menu;
import com.slsoft.sys.service.MenuService;
@Controller
@RequestMapping("sys/menu")
public class MenuAction extends BaseController<Menu, String> {
	@Autowired
	private MenuService menuService;

	public MenuAction() {
		super();
		this.pageId = "system";
		this.formId = "menuForm";
	}
	
	@Override
	protected BaseService<Menu, String> getEntityService() {
		// TODO Auto-generated method stub
		return this.menuService;
	}
	
	@RequestMapping("index")
	public String index() {
		return "/admin/sys/menu/list";
	}
	

}
